dBASE code for PEStartPrintJob and PECancelPrintJob

The following code provides an example of how to use the PEStartPrintJob function to start a print job, and how to use PECancelPrintJob to cancel it:

        && PEOpenPrintJob has been called,
    && and the print job number has been
    && assigned to the variable Job
LOCAL result, nError
result = PEStartPrintJob(Job, .T.)
IF result = .F.
    nError = PEGetErrorCode(Job)
    IF nError = PE_ERR_NOERROR
        PECloseWindow(Job)
    ELSE
        &&Handle error
    ENDIF
ENDIF
    && Now to cancel the print job:
PECancelPrintJob(Job)


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com